package audio;

import java.io.File;

import org.dom4j.Document;
import org.dom4j.io.SAXReader;

public class DOM4JParser {

	public static Document parserXml(String fileName) {
		Document document = null;
		SAXReader  reader = new SAXReader (false);
		//reader.setValidation(false);
		//reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
		//fileName = "file:///" + fileName;
		try {
			document = reader.read(new File(fileName));
		} catch (Exception e) {

			e.printStackTrace();
		}
		return document;
	}
}